let { Schema, model } = require('mongoose');
let orderSchema = new Schema({
    orderId:String,
    orderTime:String,
    orderName:String,
    orderUserName:String,
    orderSales:{       
            type: Schema.Types.ObjectId,
            ref: "salespersonsModel"      
                },
    orderType:String,
    orderPrice:String,
    oderState:Boolean,
    
 
});
module.exports.orderModel = model('orderModel', orderSchema, 'order');
